<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>二维码下载</title>
</head>
<body>

</body>
    <script>
        window.onload = function () {
            goDownload()
        };
        function goDownload() {
            var u = navigator.userAgent;
            var ua = u.toLowerCase();
            if (/iphone|ipad|ipod/.test(ua)) {  // iOS 系统 ->  跳AppStore下载地址
                //alert("iOS");
                window.location.href = 'https://apps.apple.com/cn/app/%E4%BA%91%E5%B0%9A%E5%A5%A5%E8%8E%B1/id1465194574';
            } else if ( /android/.test(ua)) { // 安卓系统 -> 跳安卓端下载地址
                // header('Content-Type: application/octet-stream');
                // header('Content-Disposition: attachment; filename="/download.zip"');
                // header('Content-Transfer-Encoding: binary');
                // // load the file to send:
                // readfile('ysal-release.apk');
                window.location.href = 'https://www.jingjing.shop/download/ysal-release.apk';
                //alert("android");
            } else if (IsPC()){ // PC端

            }
        }
    </script>
</html>